//
//  PGArticleManager.h
//  PhotographicGuide
//
//  Created by indream on 13-2-23.
//  Copyright (c) 2013年 indream. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PGHttpOperator.h"
#import "PGArticle.h"
@interface PGArticleManager : NSObject
@property(nonatomic,retain)NSOperationQueue*queue;
@property(nonatomic,assign)NSInteger lastArticleTime;
@property(nonatomic,assign)NSInteger lastArticleId;
@property(nonatomic,assign)BOOL isDownload;
@property(nonatomic,assign)BOOL isEndArticle;
@property(nonatomic,retain)NSArray*list;
@property(nonatomic,assign)NSInteger currentArticleId;
+(PGArticleManager*)sharedManager;
-(PGArticle*)articleWithID:(int)articleId;
-(NSArray*)favors;
-(void)addFavor:(int)articleId;
-(void)removeFavor:(int)articleId;
-(BOOL)favorByArticleId:(int)articleId;
-(void)updateLastestArticles;
-(void)updateOlderArticles;
-(void)addArticleView:(int)articleId;
-(void)addArticleFavor:(int)articleId;
-(void)addQperator:(PGHttpOperator*)operator;

@end
